package com.wolfking.demo.aggregate;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;

/**
 * <p>
 *
 * @author 赵伟伟(wolfking)
 * created on 2019-10-17 20:38
 */
@Component
public class UserSummary {

    public UserInfo summary(Integer age, BigDecimal amount) {
        return new UserInfo(age, amount);
    }
}
